<%@ page contentType="text/html; charset=UTF-8" %> 
<%@ page import="com.peixunp.bean.Organizations"%>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<script>
	function modi(){
		var url =  "modiOrg_" + document.getElementById("orgId").value;
		window.location = url;
	}
	function del(){
		if(confirm("小心!")){
			var url =  "delOrg_" + document.getElementById("orgId").value;
			window.location = url;
		}
	}
</script>

<% List<Organizations> organizationsList =  (ArrayList<Organizations>) request.getAttribute("organizationsList"); %>

<body>
<font color="blue"><b>修改学校</b></font><br/><br/>
输入id跳到学校:<input type="text" id="orgId" name="orgId"/><input type="button" value="modi" onclick="modi()"/><input type="button" value="del" onclick="del()"/><br/><br/>

以下是未审核学校<br/><br/>
<%
for(Organizations organizations : organizationsList){
%>

<%=organizations.getOrgname()%> &nbsp;<a href="modiOrg_<%=organizations.getId()%>">修改</a> &nbsp;<a href="delOrg_<%=organizations.getId()%>">删除</a>

<%} %>
</body>
</html>